package Test;

public class Test02 {
    public static void main(String[] args) {
        //第一题
        byte b1=10,b2=20;
        byte b3 =(byte)(b1+b2);
        System.out.println(b3);

        short s1=1000,s2=2000;
        short s3 = (short)(s1+s2);
        System.out.println(s3);

        char c1 = 'a';
        int i1 = 30;
        int ch3 = i1 - c1;
        System.out.println(ch3);

        //第二题
        int i2 = 100;
        long l1 = 200L;
        long add = i2 +l1;
        System.out.println(add);

        long l2=10000000L ;
        float f2=0.44F;
        float add2 = l2 + f2;
        System.out.println(add2);

        int i3=10000000;
        double d3=0.45 ;
        double add3 = i3 + d3;

        float f4=10000000.0f;
        double d4=1.2625;
        double add4=f4+d4;
        System.out.println(add4);
    }
}
